{// 引入标签库 }
<tagLib name="html" />
<include file="Public:header" />
<div align="center">
    <input type="hidden" id="video_url" name="video_url" value="{$video_url}"/>
    <input type="hidden" id="error" name="error" value="{$error}"/>
    <input type="hidden" id="app_id" value="{$app_id}"/>
    <!--<video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="1024" height="768"
           poster="{$poster}"
           data-setup="{}" src="" >
        &lt;!&ndash; <track kind="captions" src="demo.captions.vtt" srclang="en" label="English"/>&lt;!&ndash; Tracks need an ending tag thanks to IE9 &ndash;&gt;
        &lt;!&ndash; <track kind="subtitles" src="demo.captions.vtt" srclang="en" label="English"/>&lt;!&ndash; Tracks need an ending tag thanks to IE9 &ndash;&gt;
    </video>-->
    <div id="id_video_container" style="width:100%; height:auto;"></div>
    <script src="https://qzonestyle.gtimg.cn/open/qcloud/video/h5/h5connect.js" charset="utf-8"></script>
</div>
<script type="text/javascript">
    var error =$("#error").val();
    if(error){
        alert(error);
        func();
        function func(){
            window.close();
        }
    }else{
        var app_id = $("#app_id").val();
        var video_url = $("#video_url").val();
        var player = new qcVideo.Player("id_video_container", {
            "file_id": video_url,
            "app_id": app_id,
            "width":1024,
            "height":768
        });
    }
    /*var vi = $("#video_url").val();
    if(vi){
        var vList = vi.split(",");// 初始化播放列表
        var vLen = vList.length; // 播放列表的长度

        var curr = 0; // 当前播放的视频
        $("#example_video_1").attr('src',vList[curr]);
        var video = document.getElementById("example_video_1");


        video.addEventListener('ended', play);
        play();
        function play(e) {
            video.src = vList[curr];
            if(curr>0){
                video.load();
                video.play();
            }else{
                video.load();
                video.pause();
            }
            curr++;
            if(curr >= vLen){
                // 播放完了，重新播放
                curr = 0;
            }
        }
    }else{
        alert($("#error").val()) ;
        func();
        function func(){
            window.close();
        }
    }*/

</script>